package main

import "fmt"

func main() {
	GolangTogether(100,"如花","春哥","星姐")
}

/*fallthrough滚动执行下一个case*/
func main0111() {
	for {
		fmt.Println("请输入您的评级：A/B/C")
		var level string
		fmt.Scan(&level)

		switch level {
		case "A":
			fmt.Println("恭喜您获得我厂生产的女朋友一枚")
			//继续执行下一个条件
			fallthrough
		case "B":
			fmt.Println("恭喜您获得书包一只")
			fallthrough
		case "C":
			fmt.Println("恭喜您获得水杯一个")
		case "fuckoff":
			return
		}
	}
}

/*不定长参数只能位于参数列表的末尾*/
func GolangTogether(n int,names ...string) {
	for _,name := range names{
		fmt.Printf("亲爱的%s，爱你%d回也不厌倦\n",name,n)
	}
}


